<include file="Public/min-header"/>
<div class="wrapper">
    <include file="Public/breadcrumb"/>
		<section class="content">
            <div class="row">
                <div class="col-sm-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">增加标签</h3>
			                <div class="pull-right">
			                	<a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
			                </div>
                        </div>
 
                        <!-- /.box-header -->
                        <form action="{:U('Integral/addEditLabel')}" method="post" class="form-horizontal" id="category_form">
                        <div class="box-body">                         
                                <div class="form-group">
                                     <label class="col-sm-2 control-label">分类名称</label>
                                     <div class="col-sm-6">
                                        <input type="text" placeholder="名称" class="form-control large" name="name" value="{$goods_label_info.name}">
                                        <span class="help-inline" style="color:#F00; display:none;" id="err_name"></span>
                                    </div>
                                </div>
                                
                                <div class="form-group">
                                    <label class="control-label col-sm-2">是否显示</label>
									
                                    <div class="col-sm-10">
                                        <label> 
                                            <if condition="($goods_label_info[is_show] eq 1) or ($goods_label_info[is_show] eq NULL)"> 
                                                <input checked="checked" type="radio" name="is_show" value="1"> 是
                                                <input type="radio" name="is_show" value="0"> 否
                                            <else /> 
                                                <input type="radio" name="is_show" value="1"> 是
                                                <input checked="checked" type="radio" name="is_show" value="0"> 否
                                            </if>                                                                                                                                    
                                        </label>
                                    </div>
                                </div>
				
                             <div class="form-group">
                                 <label class="control-label col-sm-2">推荐类型</label>
                             	
                                 <div class="col-sm-10">
                                     <label> 
                                         <if condition="($goods_label_info[type] eq 1) or ($goods_label_info[type] eq NULL)"> 
                                             <input checked="checked" type="radio" name="type" value="1"> 导航推荐
                                             <input type="radio" name="type" value="0"> 列表推荐
                                         <else /> 
                                             <input type="radio" name="type" value="1"> 导航推荐
                                             <input checked="checked" type="radio" name="type" value="0"> 列表推荐
                                         </if>                                                                                                                                    
                                     </label>
                                 </div>
                             </div>
				                   
                               <div class="form-group">
                                    <label class="control-label col-sm-2">显示排序</label>
                                    <div class="col-sm-1">
                                        <input type="text" placeholder="50" class="form-control large" name="sort_order" value="{$goods_label_info.sort_order}"/>
                                        <span class="help-inline" style="color:#F00; display:none;" id="err_sort_order"></span>
                                    </div>
                                </div>
                        </div>
                        <div class="box-footer">                        	
                            <input type="hidden" name="id" value="{$goods_label_info.id}">                           
                        	<button type="reset" class="btn btn-primary pull-left"><i class="icon-ok"></i>重填  </button>                       	                 
                            <button type="button" onclick="ajax_submit_form('category_form','{:U('Integral/addEditLabel?is_ajax=1')}');" class="btn btn-primary pull-right"><i class="icon-ok"></i>提交  </button>
                        </div> 
                        </form>
                    </div>
                </div>
            </div>
        </section>
</div>

   
</body>
</html>